const Service = require('egg').Service;

class SQLService extends Service {

 

    async addHistory(data) {// 添加提/分成 历史
        // console.log("查询 ")
          const {ctx} = this;
        return await  ctx.model.WithdrawHistory.create({
            payType: data.payType,
            money: data.money, //提了多少
            userId: data.userId,
            historyType:data.historyType,
        })
        // return await this.app.mysql.get('user', { username: params });
    }

    

}

module.exports = SQLService;